import java.util.StringTokenizer;

class P541_39643 {

    public static void main(String[] args) {
    	int n = Integer.parseInt(readLn());
    	
    	while (n != 0) {
    		process(n);
    		
    		n = Integer.parseInt(readLn());
    	}
    	
    }

    private static void process(int n) {
    	int[][] matrix = new int[n+1][n+1];
    	for (int k = 0; k < n; k++) {
    		StringTokenizer st = new StringTokenizer(readLn());
    		for (int j = 0; j < n; j++) {
    			matrix[k][j] = Integer.parseInt(st.nextToken());
    			matrix[k][n] = matrix[k][n] + matrix[k][j];
    			matrix[n][j] = matrix[n][j] + matrix[k][j];
    		}
    	}
//    	print(matrix);
    	
    	int[] change = getChange(matrix, n);
    	
    	if (change == null) {
    		System.out.println("Corrupt");
    		return;
    	}
    	
    	if (change[0] == -1 && change[1] == -1) {
    		System.out.println("OK");
    		return;
    	}
    	
    	System.out.println("Change bit (" + (change[0]+1) + "," + (change[1]+1) + ")");
    	 
	}

	private static int[] getChange(int[][] matrix, int n) {
		boolean b1 = false;
		boolean b2 = false;
    	int[] change = new int[2];
    	change[0] = -1;
		change[1] = -1;
    	
    	for (int k = 0; k < n; k++) {
    		
    		if (b1 && matrix[n][k] % 2 != 0) return null;
    		
    		if (matrix[n][k] % 2 != 0 && !b1) {
//    			System.out.println(matrix[n][k]);
    			b1 = true;
    			
    			for (int j = 0; j < n; j++) {
    			
    				if (b2 && matrix[j][n] % 2 != 0) return null;
    				
    				if (matrix[j][n] % 2 != 0 && !b2) {
//    					System.out.println(matrix[j][n]);
    					change[0] = j;
    					change[1] = k;
    					b2 = true;
    				}
    				
    				
    			}
    		}
    		
    	}

		return change;
	}

	private static void print(int[][] matrix) {
		for (int k = 0; k < matrix.length; k++) {
			for (int j = 0; j < matrix[k].length; j++) {
				System.out.print(matrix[k][j] + " ");
			}
			System.out.println();
		}
		
	}

	static String readLn() {
        String newLine = System.getProperty("line.separator");
        StringBuffer buffer = new StringBuffer();
        int car = -1;
        try {
            car = System.in.read();
            while ((car > 0) && (car != newLine.charAt(0))) {
                buffer.append((char)car);
                car = System.in.read();
            }
            if (car == newLine.charAt(0))
            System.in.skip(newLine.length() - 1);
        } catch (java.io.IOException e) { return (null);}
        if ((car < 0) && (buffer.length() == 0)) return (null);
        return (buffer.toString()).trim();
    }

}